package cn.kow.kmall.system.service;

import cn.kow.kmall.system.entity.SysDict;
import cn.kow.kmall.system.entity.SysDictData;
import cn.kow.kmall.admin.pojo.dto.DictDataQueryDTO;
import cn.kow.kmall.admin.pojo.dto.DictQueryDTO;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @Author: lijun
 * @Description:
 * @Date: Created in 2019-10-29 18:27
 * @Modified By:
 */
public interface SysDictService {

    void save(SysDict dict);

    void remove(List<Long> idList);

    void update(SysDict sysDict);

    Page<SysDict> listDictByPage(DictQueryDTO queryDTO);

    List<SysDict> listDict();

    SysDict getById(Long dictId);

    SysDict getByType(String dictType);

    Boolean checkTypeUnique(String dictType);

    Page<SysDictData> listDictDataByPage(DictDataQueryDTO queryDTO);

    SysDictData getDictDataById(Long id);

    List<SysDictData> listDictDataByType(String dictType);

    void addDictData(SysDictData dictData);

    void updateDictData(SysDictData dictData);

    void deleteDictDataByIds(List<Long> idList);


}
